#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	long long a, n;
	cin >> a >> n;
	cout << pow(a, n);
	return 0;
}